import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import {setRem} from './utils/rem'
setRem()


import Vant from 'vant';
import 'vant/lib/index.css';

Vue.use(Vant);
// onresize 回调数组
window.resizeCallbackList = [setRem]
window.onresize = () => {
  window.resizeCallbackList.map(callback => {
    callback()
  })
}
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
